<template>
    <div class="spinner" v-if="loading"></div>
</template>

<script setup>
const props = defineProps({
    loading: Boolean
})
</script>

<style lang="scss" scoped>

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
</style>